import { FilterItem } from '@/components/FilterBar/types'
import { ref } from 'vue'

export const goodsReceiveOptions = ref<Array<FilterItem>>([
  {
    label: '物品名称',
    prop: 'goodsName',
    type: 'input',
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请输入物品名称'
    }
  },
  {
    label: '物品编号',
    prop: 'goodsCode',
    type: 'input',
    inputProps: {
      clearable: true,
      placeholder: '请输入物品编号'
    }
  },
  {
    label: '领取人姓名',
    prop: 'receiveName',
    type: 'input',
    inputProps: {
      clearable: true,
      placeholder: '请输入领取人姓名'
    }
  },
  {
    label: '领取时间',
    prop: 'startTime',
    type: 'datePicker',
    defaultValue: [],
    inputProps: {
      placeholder: '请选择领取时间',
      type: 'daterange',
      'value-format': 'YYYY-MM-DD'
    }
  },
  {
    label: '记录人',
    prop: 'recorder',
    type: 'input',
    inputProps: {
      clearable: true,
      placeholder: '请输入记录人'
    }
  },
  {
    label: '航站楼',
    prop: 'depositTerminal',
    type: 'select',
    defaultValue: [],
    inputProps: {
      // 控制是否显示权限功能
      clearable: true,
      placeholder: '请选择航站楼',
      options: []
    }
  },
  {
    label: '物品类型',
    prop: 'goodsType',
    type: 'select',
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请选择物品类型',
      options: [
        // { label: '全部', value: 'all' }
      ]
    }
  },
])
